var mongoose = require( 'mongoose' );
var Schema   = mongoose.Schema;

var Todo = new Schema({
    user_id    : String,
    content    : String,
    updated_at : Date
});

mongoose.model( 'Todo', Todo );
// ganti username, password dan servermongodb sesuai dengan konfigurasi db nya
mongoose.connect( 'mongodb://username:password@servermongodb.cloudapp.net/express-todo' );